package me.jessyan.armscomponent.app.mvp.model.entity;

import java.util.List;

/**
 * Desc:
 * Created by taoze
 * on 2021/9/20
 **/

public class Question {

    //问题ID 示例：0fvsuh52kfjvtt06sn26
//    @SerializedName("“questionId”")
    private String questionId;// FIXME check this code
    //问题内容 示例：您是穆斯林吗？
//    @SerializedName("“contentAra”")
    private String contentAra;// FIXME check this code
    //问题类型 示例：2 （1：选择题，2：判断题，3：问答题）
//    @SerializedName("“questionType”")
    private int questionType;// FIXME check this code
    //问题选项  数据列表
//    @SerializedName("“opts”")
    private List<Option> opts;// FIXME check this code
    //选择题解答（多选用,号隔开），判断题解答（1：代表是 或 0：代表否），问答题解答内容
    private String answer;// FIXME check this code

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getContentAra() {
        return contentAra;
    }

    public void setContentAra(String contentAra) {
        this.contentAra = contentAra;
    }

    public int getQuestionType() {
        return questionType;
    }

    public void setQuestionType(int questionType) {
        this.questionType = questionType;
    }

    public List<Option> getOpts() {
        return opts;
    }

    public void setOpts(List<Option> opts) {
        this.opts = opts;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }


    public class Option{

        private String serialNumber;
        private String contentAra;
        private String contentEn;
        private boolean selected;

        public String getSerialNumber() {
            return serialNumber;
        }

        public void setSerialNumber(String serialNumber) {
            this.serialNumber = serialNumber;
        }

        public String getContentAra() {
            return contentAra;
        }

        public void setContentAra(String contentAra) {
            this.contentAra = contentAra;
        }

        public String getContentEn() {
            return contentEn;
        }

        public void setContentEn(String contentEn) {
            this.contentEn = contentEn;
        }

        public boolean isSelected() {
            return selected;
        }

        public void setSelected(boolean selected) {
            this.selected = selected;
        }
    }
}
